gtk: fix weed_out_neg_zero() in spinbutton and scale
authorMichael Natterer <mitch@gimp.org>
Mon, 3 Jun 2019 00:22:20 +0000 (00:22 +0000)
committerBenjamin Otte <otte.benjamin@googlemail.com>
Mon, 3 Jun 2019 00:34:44 +0000 (00:34 +0000)
commitcaf50bcb93013cb0875ba101ffa0d4e7e74dcfb3
tree789b3676955675651f5bf2ef3dde218b2623b4ba
parent7e9cb07a925f78e3961c70ee0b896738b4d1520b
gtk: fix weed_out_neg_zero() in spinbutton and scale

It was not copying the terminating \0 in the string, breaking output
in spinbutton (didn't try scale). Fixes #3452.

(cherry picked from commit ae2ef1472c69ad61ed8d19d932da4ca04c2a13ef)
gtk/gtkscale.c
gtk/gtkspinbutton.c